// // import {getConfig} from '../config_lib/edit_config'
// import init from './init'
// console.log(init)
// const dbModule = { db: null };
// dbModule.promise = init().then(val => dbModule.db = val)
// console.log(dbModule)
// export default dbModule

// // const dbModule =await import('./init')
// // console.log(dbModule)
import * as dbchain from 'xiaoyao-dbchain-js-lib'
let DBchainType=localStorage.getItem('DBchainType')?localStorage.getItem('DBchainType'):'secp256k1'
console.log(dbchain[DBchainType])
export default dbchain[DBchainType]